package com.rental.model.entity.house;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2025-01-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sublet_hourse")
@Schema( description ="SubletHourse对象")
public class SubletHourse implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema( description = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema( description = "用户表Id")
    private Long uid;

    @Schema( description = "经度")
    private BigDecimal longitude;

    @Schema( description = "纬度")
    private BigDecimal latitude;

    @Schema( description = "房子照片")
    private String imagesUrl;

    @Schema( description = "房子视频")
    private String videoUrl;

    @Schema( description = "邻近车站")
    private String nearbyStation;

    @Schema( description = "房屋户型")
    private String structure;

    @Schema( description = "房屋情况与优点")
    private String introduce;

    @Schema( description = "租金")
    private BigDecimal rent;

    @Schema( description = "租期")
    private Integer tenancyTerm;

    @Schema( description = "押金方式")
    private String payType;

    @Schema( description = "租客的要求")
    private String renterRequire;

    @Schema( description = "房东情况")
    private String landlord;

    @Schema( description = "有效时间")
    private LocalDate endTime;

    @Schema( description = "房屋入住人数")
    private Integer occupancy;

    @Schema(description = "男性人数")
    private Integer male;

    @Schema(description = "女性人数")
    private Integer female;

    @Schema( description = "可入住时间")
    private LocalDate moveTime;

    @Schema( description = "联系微信")
    private String wechat;

    @Schema( description = "联系手机号")
    private String phone;

    @Schema( description = "合约到期时间")
    private LocalDate contractExpiration;

    @Schema( description = "参观时间")
    private String visitingTime;

    @Schema( description = "标题")
    private String title;

    @Schema( description = "创建时间")
    private LocalDateTime createTime;

    @Schema( description = "修改时间")
    private LocalDateTime updateTime;

    @TableLogic
    @Schema( description = "删除状态")
    private Integer isDelete;

    @Schema( description = "浏览次数")
    private Integer viewCount;

    @Schema(description = "位置")
    private String location;

    @Schema(description = "上下架状态：0下架1上架")
    private Integer state;

    @Schema(description = "举报数")
    private Integer accusation;
}
